package com.zrt.bookstore3.Domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private int id;
    private String username;
    private String password;
    private String email;
    private String createTime;
    private String role;
    private String telephone;

    public User(int id, String username, String password, String email, String telephone) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
        this.telephone = telephone;
    }

    public User(int id, String username, String password, String email, String createTime,String role) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
        this.createTime = createTime;
        this.role = role;
    }
}
